Result

sealed class Result : Parcelable

Represents the result of launching a Google Pay sheet via GooglePayLauncher

Result.Completed will contain a PaymentData instance.
Result.Failed will contain a GooglePayException instance.
Result.Canceled indicates the user closed the Google Pay sheet

Inheritors

Types

Link copied to clipboard
object Canceled : Result

Represents a transaction canceled by the user

Link copied to clipboard
data class Completed(val paymentData: PaymentData) : Result

Represents a successful transaction

Link copied to clipboard
data class Failed(val error: GooglePayException) : Result

Represents a failed transaction